package com.chixing.day04_oop;

public class AccountTest {
    public static void main(String[] args) {
        SavingAccount sa = new SavingAccount();
        sa.setBankId(11221213);
        sa.setRootName("liu");
        sa.setRootPhone("176268917");
        sa.setBankPassword(12334);
        sa.setRootIdCard(1234567897);
        sa.setEmail("138768@qq.com");
        sa.setAccBalance(6789);

        //重写
        System.out.println(sa);

        SavingAccount sa2 = new SavingAccount();




        sa.depoist(100);
        sa.withdraw(50);


     /*   CreditAccount ca = new CreditAccount();
        ca.depoist(100);
        ca.withdraw(1000);*/
    }
}
